package com.xblog.chatbox.vlmp.core.dify.model;

import com.alibaba.fastjson2.annotation.JSONField;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;

@Getter
@Setter
public class ChunkChatCompletionResponse implements Serializable {

    /**
     * 事件类型，固定为 message
     */
    private ChunkChatEvent event;
    /**
     * 任务 ID，用于请求跟踪和下方的停止响应接口
     */
    @JSONField(name = "task_id")
    private String taskId;

    /**
     * 消息Id
     */
    @JSONField(name = "message_id")
    private String messageId;

    /**
     * 会话 ID
     */
    @JSONField(name = "conversation_id")
    private String conversationId;

    /**
     * 回复内容
     */
    private String answer;

    /**
     * 消息创建时间戳
     */
    @JSONField(name = " created_at")
    private Long created;
}
